# working institution:School of Mathematical Sciences,Zhejiang University
# author:Kangjie Ding
# date:2022/11/19 19:24
class GameStats:
    """跟踪游戏的统计信息"""
    def __init__(self,ai_game):
        """初始化统计信息"""
        self.settings=ai_game.settings
        self.ships_left=self.settings.ships_limit
        self.game_active=False
        self.score=0
        self.high_score=0
        self.level=1

    def reset_stats(self):
        """初始化在游戏运行时可能变化的统计信息"""
        self.ships_left=self.settings.ships_limit
        self.score=0